/**
 * 事件工具类
 * 得到当前的事件
 */
package cn.edu.bit.lixin.blog.util;

import java.util.Date;

public class TimeUtil {
	private static Date date;
	private static TimeUtil timeUtil;
	
	//构造函数设为private 
	private TimeUtil(){
	}
	
	public static TimeUtil getInstance(){
		if (timeUtil == null){
			timeUtil = new TimeUtil();
		}
		return timeUtil;
	}
	
	//得到当前的时间
	public static Date getNowTime(){
		date = null;
		date = new Date();
		return date;
	}
}
